package org.etlt.check;

/**
 * check result, default is false
 */
public class CheckResult {
    private final CheckPoint checkPoint;

    private boolean checked = false;

    private boolean success = false;

    public CheckResult(CheckPoint checkPoint){
        this.checkPoint = checkPoint;

    }

    public void fail(){
        this.success = false;
        this.checked = true;
    }

    public void success(){
        this.success = true;
        this.checked = true;
    }

    public boolean isSuccess() {
        return success;
    }

    public boolean isChecked(){
        return this.checked;
    }

    public CheckPoint getCheckPoint() {
        return checkPoint;
    }
}
